package org.oslog.common.core;

import org.springframework.beans.factory.BeanFactory;

/**
 * OSlogBeanFactory.java create on 2011-11-22 22:17:37
 * Factory to retrieve instance of beans of the API.
 * @author tomaer
 */
public final class OSlogBeanFactory {
	
	private static BeanFactory ctx;

	public static Object getBean(String name) {
		return ctx.getBean(name);
	}

	public static void setBeanFactory(BeanFactory bf) {
		ctx = bf;
	}
}
